/*
 * Copyright (C) Senselogic 2008, all rights reserved
 */
package senselogic.portlet.helloworld;

import javax.portlet.*;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * Example portlet that prints "Hello world" in a span with css class portlet-font
 *
 * @author magnus
 * @version $Revision: 1.0 $
 */
public class HelloWorldPortlet
        extends GenericPortlet
{
   // GenericPortlet overrides --------------------------------------
   protected void doView(RenderRequest aRenderRequest, RenderResponse aRenderResponse)
           throws PortletException, IOException
   {
	   aRenderResponse.setContentType("text/html");
      PrintWriter writer = aRenderResponse.getWriter();
      writer.println("<span class=\"portlet-font\">Hello world!</span>");
   }
}